-
Notifications
You must be signed in to change notification settings - Fork 30
/
Install-PowerShellPowerUp.ps1
48 lines (41 loc) · 1.19 KB
/
Install-PowerShellPowerUp.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<#
$Metadata = @{
Title = "Install PowerShell PowerUp"
Filename = "Install-PowerShellPowerUp.ps1"
Description = ""
Tags = "powershell, profile, installation"
Project = ""
Author = "Janik von Rotz"
AuthorContact = "http://janikvonrotz.ch"
CreateDate = "2013-10-15"
LastEditDate = "2014-01-29"
Version = "1.0.1"
License = @'
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Switzerland License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ch/ or
send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
'@
}
#>
function Install-PowerShellPowerUp{
<#
.SYNOPSIS
Install PowerShell PowerUp.
.DESCRIPTION
This functions runs the installer script of the PowerShell PowerUp script.
.PARAMETER Force
Overwrites configuration files even if the already exist.
.EXAMPLE
PS C:\> Install-PowerShellPowerUp -Force
#>
param(
[switch]
$Force
)
#--------------------------------------------------#
# main
#--------------------------------------------------#
Set-Location $PSprofile.Path
Invoke-Expression "$($PSProfile.Install.FullName) -Force:`$Force"
Set-Location $WorkingPath
}